//1.引入Vue
import Vue from 'vue'

//2.引入vue-router
import VueRouter from 'vue-router'
import Find from '../views/find'
import My from '../views/my'
import Part from '../views/part'
import List from '../views/list'
//3.使用vue-router
Vue.use(VueRouter)

//4.创建vue-router实例
const router = new VueRouter({
  routes: [
    {
      path: '/find',
      component: Find,
    },
    {
      path: '/my',
      component: My,
    },
    {
      path: '/part',
      component: Part,
    },
    {
      path: '/list',
      component: List,
    },
  ],
})

//5.导出router实例
export default router
